#ifndef SHELL_H_
#define SHELL_H_
#include "defs.h"

typedef struct {
	unsigned char history[MAX_COMM][COMM_LEN+1];
	int first;
	int current;
	int last;
} historyT;


void setLights(void);
void Shell(void);
void ProcessComand(char * line);
int strCmp(char * s, char * t);
int UpHistory(char * line, historyT * hist);
int strCpy(char * string1, char * string2, int len);
void cpyBuff(char * string, historyT * hist);
int HistoryFull(historyT * hist);
int HistoryEmpty(historyT * hist);
int strLen(char * string);
int DownHistory(char * line, historyT * hist);
int atoi(char * s);
void reBoot(void);

#endif /*SHELL_H_*/
